package cn.nuist.entity;

import cn.nuist.entity.enu.OrderStatus;
import cn.nuist.entity.enu.PaymentMethod;

import java.util.Date;

public class OrderSummaryView {
    private int orderID;
    private String customerName;
    private Date orderDate;
    private OrderStatus orderStatus;
    private PaymentMethod paymentMethod;
    private double totalAmount;

    public OrderSummaryView(int orderID, String customerName, Date orderDate, OrderStatus orderStatus, PaymentMethod paymentMethod, double totalAmount) {
        this.orderID = orderID;
        this.customerName = customerName;
        this.orderDate = orderDate;
        this.orderStatus = orderStatus;
        this.paymentMethod = paymentMethod;
        this.totalAmount = totalAmount;
    }

    public OrderSummaryView() {
    }

    public int getOrderID() {
        return orderID;
    }

    public void setOrderID(int orderID) {
        this.orderID = orderID;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

    public PaymentMethod getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(PaymentMethod paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    @Override
    public String toString() {
        return "OrderSummaryView{" +
                "orderID=" + orderID +
                ", customerName='" + customerName + '\'' +
                ", orderDate=" + orderDate +
                ", orderStatus=" + orderStatus +
                ", paymentMethod=" + paymentMethod +
                ", totalAmount=" + totalAmount +
                '}';
    }
}
